// src/api/paymentApi.js
import { apiClient } from './base'

export const getPayments = (params) => 
  apiClient.get('/contract-payments', { params })

export const createPayment = (data) => 
  apiClient.post('/contract-payments', data)

export const updatePayment = (id, data) => 
  apiClient.put(`/contract-payments/${id}`, data)

export const deletePayment = (id) => 
  apiClient.delete(`/contract-payments/${id}`)

export const checkPaymentNumber = (params) =>
  apiClient.get('/contract-payments/check', { params })